package com.zhr.tea.entity.shouye;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.List;

/**
 * Created by ym on 2016/11/3.
 */

public class BodyEnter implements Serializable{
    /**
     * code : GOOD
     * content : {"id":4,"headPhoto":"http://picture.teapaopao.com/document/20160607/default/ec4897a04b286833a5576fbfba196c09.jpg","goodsList":[{"photoUrl":"http://picture.teapaopao.com/document/20160527/default/905a8524eb21e1ea85842eb6c95d44d3.jpg","marketPrice":"","goodsId":3020412,"price":36,"id":32,"goodsType":"2","NAME":"龙井陶瓷罐装"},{"photoUrl":"http://picture.teapaopao.com/document/20160607/default/af1b34271c8ca4af771c2f365524b7a4.jpg","marketPrice":"","goodsId":3020077,"price":48,"id":30,"goodsType":"2","NAME":"六安瓜片"},{"photoUrl":"http://picture.teapaopao.com/document/20160607/default/ca03c06d3ab6292753142cf5d6bb425f.jpg","marketPrice":"","goodsId":3020538,"price":55.8,"id":87,"goodsType":"2","NAME":"小叶苦丁茶"},{"photoUrl":"http://picture.teapaopao.com/document/20160607/default/a47bed9daf3e056482407c87c255764c.jpg","marketPrice":"","goodsId":3020539,"price":86,"id":31,"goodsType":"2","NAME":"青叶甘露"},{"photoUrl":"http://picture.teapaopao.com/document/20160607/default/b61965d3f54b54c577fce94f013efdeb.jpg","marketPrice":"","goodsId":3020520,"price":98,"id":34,"goodsType":"2","NAME":"碧螺春"},{"photoUrl":"http://picture.teapaopao.com/document/20160607/default/062f5cc70ab60ccecc84382d0faa4246.jpg","marketPrice":"","goodsId":3020528,"price":99,"id":33,"goodsType":"2","NAME":"黄山毛峰"},{"photoUrl":"http://picture.teapaopao.com/document/20160607/default/0a8bd13643178c6f8b4548cc9fed60cb.jpg","marketPrice":"","goodsId":3020427,"price":99,"id":29,"goodsType":"2","NAME":"太平猴魁"},{"photoUrl":"http://picture.teapaopao.com/document/20160607/default/d7723908dfa63405c19bc4cbd21ca69e.jpg","marketPrice":"","goodsId":3020544,"price":199,"id":88,"goodsType":"2","NAME":"安吉白茶"}]}
     */

    @JSONField(name = "code")
    private String code;
    /**
     * id : 4
     * headPhoto : http://picture.teapaopao.com/document/20160607/default/ec4897a04b286833a5576fbfba196c09.jpg
     * goodsList : [{"photoUrl":"http://picture.teapaopao.com/document/20160527/default/905a8524eb21e1ea85842eb6c95d44d3.jpg","marketPrice":"","goodsId":3020412,"price":36,"id":32,"goodsType":"2","NAME":"龙井陶瓷罐装"},{"photoUrl":"http://picture.teapaopao.com/document/20160607/default/af1b34271c8ca4af771c2f365524b7a4.jpg","marketPrice":"","goodsId":3020077,"price":48,"id":30,"goodsType":"2","NAME":"六安瓜片"},{"photoUrl":"http://picture.teapaopao.com/document/20160607/default/ca03c06d3ab6292753142cf5d6bb425f.jpg","marketPrice":"","goodsId":3020538,"price":55.8,"id":87,"goodsType":"2","NAME":"小叶苦丁茶"},{"photoUrl":"http://picture.teapaopao.com/document/20160607/default/a47bed9daf3e056482407c87c255764c.jpg","marketPrice":"","goodsId":3020539,"price":86,"id":31,"goodsType":"2","NAME":"青叶甘露"},{"photoUrl":"http://picture.teapaopao.com/document/20160607/default/b61965d3f54b54c577fce94f013efdeb.jpg","marketPrice":"","goodsId":3020520,"price":98,"id":34,"goodsType":"2","NAME":"碧螺春"},{"photoUrl":"http://picture.teapaopao.com/document/20160607/default/062f5cc70ab60ccecc84382d0faa4246.jpg","marketPrice":"","goodsId":3020528,"price":99,"id":33,"goodsType":"2","NAME":"黄山毛峰"},{"photoUrl":"http://picture.teapaopao.com/document/20160607/default/0a8bd13643178c6f8b4548cc9fed60cb.jpg","marketPrice":"","goodsId":3020427,"price":99,"id":29,"goodsType":"2","NAME":"太平猴魁"},{"photoUrl":"http://picture.teapaopao.com/document/20160607/default/d7723908dfa63405c19bc4cbd21ca69e.jpg","marketPrice":"","goodsId":3020544,"price":199,"id":88,"goodsType":"2","NAME":"安吉白茶"}]
     */

    @JSONField(name = "content")
    private ContentBean content;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public ContentBean getContent() {
        return content;
    }

    public void setContent(ContentBean content) {
        this.content = content;
    }

    public static class ContentBean implements Serializable{
        @JSONField(name = "id")
        private int id;
        @JSONField(name = "headPhoto")
        private String headPhoto;
        /**
         * photoUrl : http://picture.teapaopao.com/document/20160527/default/905a8524eb21e1ea85842eb6c95d44d3.jpg
         * marketPrice :
         * goodsId : 3020412
         * price : 36
         * id : 32
         * goodsType : 2
         * NAME : 龙井陶瓷罐装
         */

        @JSONField(name = "goodsList")
        private List<GoodsListBean> goodsList;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getHeadPhoto() {
            return headPhoto;
        }

        public void setHeadPhoto(String headPhoto) {
            this.headPhoto = headPhoto;
        }

        public List<GoodsListBean> getGoodsList() {
            return goodsList;
        }

        public void setGoodsList(List<GoodsListBean> goodsList) {
            this.goodsList = goodsList;
        }

        public static class GoodsListBean implements Serializable{
            @JSONField(name = "photoUrl")
            private String photoUrl;
            @JSONField(name = "marketPrice")
            private String marketPrice;
            @JSONField(name = "goodsId")
            private int goodsId;
            @JSONField(name = "price")
            private int price;
            @JSONField(name = "id")
            private int id;
            @JSONField(name = "goodsType")
            private String goodsType;
            @JSONField(name = "NAME")
            private String NAME;

            public String getPhotoUrl() {
                return photoUrl;
            }

            public void setPhotoUrl(String photoUrl) {
                this.photoUrl = photoUrl;
            }

            public String getMarketPrice() {
                return marketPrice;
            }

            public void setMarketPrice(String marketPrice) {
                this.marketPrice = marketPrice;
            }

            public int getGoodsId() {
                return goodsId;
            }

            public void setGoodsId(int goodsId) {
                this.goodsId = goodsId;
            }

            public int getPrice() {
                return price;
            }

            public void setPrice(int price) {
                this.price = price;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getGoodsType() {
                return goodsType;
            }

            public void setGoodsType(String goodsType) {
                this.goodsType = goodsType;
            }

            public String getNAME() {
                return NAME;
            }

            public void setNAME(String NAME) {
                this.NAME = NAME;
            }
        }
    }
}
